Page({
  data:{
    activeIndex:0,
    orders:[
      {id:1001,name:"待支付",content:"待支付的内容"},
      {id:1002,name:"待付款",content:"待付款的内容"},
      {id:1003,name:"待收货",content:"待收货的内容"},
      {id:1004,name:"待评价",content:"待评价的内容"},
      {id:1005,name:"退款/售后",content:"退款/售后的内容"}
    ]
  },
  itemClick(e){
    let {id}=e.currentTarget;
    this.setData({
      activeIndex:id
    })
  }
})